<form class="submitform" action="${path}/eframe/framework/menu/menu!save.action" method="post">
	<@s.token name="${m}"/>
	<input class="textbox-value" name="id" value="${id}"/>
	<table class="free">
		<tr>
			<th width="15%">菜单名称：</th>
          	<td width="35%">
          		<input class="eui-textbox" data-options="required:true,validType:'max[50]'" name="menuname" value="${menuname}"/>
          	</td>
          	<th width="15%">菜单编码：</th>
          	<td width="35%">
          		<input class="eui-textbox" data-options="required:true,validType:'max[50]'" name="menucode" value="${menucode}"/>
          	</td>
		</tr>
		<tr>
			<th>菜单显示名称：</th>
          	<td>
          		<input class="eui-textbox" data-options="required:true,validType:'max[50]'" name="displayname" value="${displayname}"/>
          	</td>
          	<th>菜单显示顺序：</th>
          	<td>
          		<input class="eui-textbox" data-options="validType:'max[50]'" name="sortno" value="${sortno}"/>
          	</td>
		</tr>
		<tr>
			<th>功能资源：</th>
          	<td>
          		<input class="eui-combotree" name="functionid" id="functionid" value="${functionid}" data-options="
          				url:'${path}/eframe/framework/application/app!getFuncTreedata.action',
          				method:'post',
          				onBeforeLoad:addParam,
          				onBeforeSelect:isFunc"/>
          	</td>
			<th>打开方式：</th>
          	<td>
          		<input class="eui-combobox" name="opentype" value="${opentype}" dicttypecode="opentype"/>
          	</td>
		</tr>
	</table>
</form>
<script>
	//添加需要传递的参数
	function addParam(node, param) {
		if(node && node.attributes && node.attributes.nodeType) {
			param.nodeType = node.attributes.nodeType;
		}
	}
	function isFunc(node) {
		if(node && node.attributes && node.attributes.nodeType == 'func') {
			return true;
		} else {
			return false;
		}
	}
</script>